<?php

namespace app\admin\validate;
use think\Validate;
use think\Db;
class AdminLogin extends Validate
{

    protected $rule = [
        'tel'              => 'require|regex:^1\d{10}$',
        'checkCode'        => 'require|number',

    ];

    protected $message = [
        'tel.require'       =>  '手机号必须',
        'tel.regex'         =>  '手机号必须数字',
        'checkCode.require' =>  '验证码必须',
        'checkCode.number'  =>  '验证码必须数字',
    ];
















}